import 'package:plugin_platform_interface/plugin_platform_interface.dart';

import 'flutter_share_method_channel.dart';

abstract class FlutterSharePlatform extends PlatformInterface {

  /// Constructs a FlutterSharePlatform.
  FlutterSharePlatform() : super(token: _token);

  static final Object _token = Object();

  static FlutterSharePlatform _instance = MethodChannelFlutterShare();

  /// The default instance of [FlutterSharePlatform] to use.
  ///
  /// Defaults to [MethodChannelFlutterShare].
  static FlutterSharePlatform get instance => _instance;

  /// Platform-specific implementations should set this with their own
  /// platform-specific class that extends [FlutterSharePlatform] when
  /// they register themselves.
  static set instance(FlutterSharePlatform instance) {
    PlatformInterface.verifyToken(instance, _token);
    _instance = instance;
  }

  Future<bool?> share(Map<String, String> params) async {
    return null;
  }
}
